//
//  FiveColumnsTableViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FiveColumnsTableViewCell.h"
#import "UIView+Frame.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation FiveColumnsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _view1 = [UIView new];
        _view1.backgroundColor = [UIColor blackColor];
        _view1.alpha = 0.5;
//        [self.contentView addSubview:_view1];
        _titleLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:17]];
        [self.contentView addSubview:_titleLabel];
        _nameLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:15]];
        _nameLabel.alpha = 0.5;
        [self.contentView addSubview:_nameLabel];
        _totalLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:13]];
        _totalLabel.backgroundColor = [UIColor blackColor];
        _totalLabel.alpha = 0.5;
        _totalLabel.layer.cornerRadius = 5;
//        [self.contentView addSubview:_totalLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    _view1.frame = CGRectMake(5, 5, 3, 70);
    _titleLabel.frame = CGRectMake(10, 5, 180, 30);
    _nameLabel.frame = CGRectMake(10, 35, 180, 30);
    _totalLabel.frame = CGRectMake(SCREEN_WIDTH - 110, 30, 80, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
